package com.example.devcaptcha.model;

import lombok.Data;

/**
 * @Description TODO
 * @Date 2023/1/29 11:32
 * @created by Wanghuafu
 * @Version 1.0.0
 */
@Data
public class RespModel {

    private String msg;
    private int code;
    private Object t;

    public static RespModel sucInstance(){
        return new RespModel("请求成功",0,null);
    }

    public static RespModel sucInstance(Object data){
        return new RespModel("请求成功",0,data);
    }


    public RespModel() {
    }

    public RespModel(String msg, int code, Object t) {
        this.msg = msg;
        this.code = code;
        this.t = t;
    }
}
